//
//  SDHomeReusableView2.m
//  skinDetection
//
//  Created by  liangzhun on 2018/10/31.
//  Copyright © 2018年  liangzhun. All rights reserved.
//

#import "SDHomeReusableView2.h"

@implementation SDHomeReusableView2

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    [self.headerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.equalTo(self);
        make.height.mas_equalTo(135);
    }];
    
}
-(void)setListArray:(NSArray *)listArray
{
    _listArray = listArray;
    [self.headerView setImageArray:self.listArray];
    
}
-(SDHomeHeaderView *)headerView
{
    if (!_headerView) {
        _headerView = [[SDHomeHeaderView alloc] init];
        [self addSubview:_headerView];
    }
    return _headerView;
}
@end
